package _0_语法._3_分支;

import java.util.Scanner;

public class _13_判断是否为闰年 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year;

        System.out.println("请输入4位年份数字：");
        year = scanner.nextInt();

        if((year % 4 == 0 && year % 100 != 0)|| year % 400 == 0){
            System.out.println("是闰年");
        }
        else {
            System.out.println("不是闰年");
        }
    }
}
